package com.itcanteen.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itcanteen.reggie.common.R;
import com.itcanteen.reggie.entity.Employee;
import org.apache.ibatis.annotations.Insert;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author baimugudu
 * @email 2415621370@qq.com
 * @date 2022/10/22 10:07
 */
public interface EmployeeService {

    //用户登录
    R<Employee> login(Employee employee);

    /**
     * 添加
     * @param employee
     */
   void save( Employee employee);

   Page<Employee> findPage(Integer page,Integer pageSize,String name);

    /*
    修改员工信息
     */
    void updateEmp(Employee employee);

    /**
     * 根据id查找员工
     * @param id
     * @return
     */
    Employee findById(Long id);

    List<Employee> findAll();
}
